<?php

class SiteController extends CController {

    public function actionIndex() {
        $html = str_get_html(Parser::getHtmlPage('http://www.wikipedia.org/'));
        $title = array_shift($html->find('title'))->innertext;
        echo $title;
    }


}